package model;

import java.net.Socket;

public class Player extends Thread
{
	private int playerNumber;
	private boolean notEaten;
	private GameTile playerPosition;
	private int posX;
	private int posY;
	private int teleportCount;

	public Player(int playerNumber, boolean isAlive, int posX, int posY)
	{
		this.playerNumber = playerNumber;
		this.notEaten = isAlive;
		this.posX = posX;
		this.posY = posY;

	}
	
	public int getTeleportCount(){
		return teleportCount;
	}
	
	public void setTeleportCount(int teleportCount){
		this.teleportCount = teleportCount;
	}

	public int getPlayerNumber()
	{
		return playerNumber;
	}

	public void setPlayerNumber(int playerNumber)
	{
		this.playerNumber = playerNumber;
	}

	public boolean notEaten()
	{
		return notEaten;
	}

	public void setAlive(boolean isAlive)
	{
		this.notEaten = isAlive;
	}

	public GameTile getPlayerPosition()
	{
		return playerPosition;
	}

	public void setPlayerPosition(GameTile playerPosition)
	{
		this.playerPosition = playerPosition;
	}
	
	public int getPosX(){
		return posX;
	}
	
	public int getPosY(){
		return posY;
	}
	
	public void setPosX(int newPosX){
		this.posX = newPosX;
	}
	
	public void setPosY(int newPosY){
		this.posY = newPosY;
	}
	
	public void run(){
		teleportCount = 1;
	}
}
